package com.jaswine.bean.dto;

import lombok.Getter;
import lombok.Setter;


/**
 * 结果返回DTO
 *
 * @author Jaswine
 */
public class RtnDTO<T>  implements DTO {

	/**
	 * code码
	 */
	@Setter
	@Getter
	private int code;
	/**
	 * 消息
	 */
	@Setter
	@Getter
	private String msg;
	/**
	 * 数据实体
	 */
	@Setter
	@Getter
	private T data;


	@Override
	public String toString() {
		return "RtnDTO{" +
				"code=" + code +
				", msg='" + msg + '\'' +
				", data=" + data +
				'}';
	}
}
